package com.oasen.learn.usercenter.config;

import javax.servlet.FilterRegistration.Dynamic;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.springframework.web.WebApplicationInitializer;

public class UsercenterInitializer implements WebApplicationInitializer{
	@Override
	public void onStartup(ServletContext context) throws ServletException {
		Dynamic filter = context.addFilter("firstFilter", FirstFilter.class);
		filter.addMappingForUrlPatterns(null, false, "/*");
		
	}
	

}
